package org.jeecg.modules.charge.service.impl;

import org.jeecg.modules.charge.entity.ChargePayConfig;
import org.jeecg.modules.charge.mapper.ChargePayConfigMapper;
import org.jeecg.modules.charge.service.IChargePayConfigService;
import org.jeecg.modules.charge.vo.ChargeMinipayConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 支付配置
 * @Author: jeecg-boot
 * @Date:   2019-08-15
 * @Version: V1.0
 */
@Service
public class ChargePayConfigServiceImpl extends ServiceImpl<ChargePayConfigMapper, ChargePayConfig> implements IChargePayConfigService {
    @Autowired
    private ChargePayConfigMapper  chargePayConfigMapper;
    @Override
    public ChargePayConfig getConfigByPid(String projectId, String payMethod) {
        ChargePayConfig config=chargePayConfigMapper.getConfigByPid(projectId, payMethod);
        return config;
    }
//    @Override
//    public ChargeMinipayConfig getminipayByPid(String  projectId){
//        ChargeMinipayConfig config=chargePayConfigMapper.getminipayByPid(projectId);
//        return config;
//    }
}
